<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CORS test</title>
</head>

<body>
    <p>CORS test - 查看网络请求</p>

    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script>

        // 跨域请求
        $.get('http://localhost:8000/', res => {
            console.log('res', res)
        })

    </script>
</body>

</html>